.class Lcom/xingbook/xingbook/activity/x;
.super Landroid/os/Handler;


# instance fields
.field private a:Ljava/lang/ref/WeakReference;


# direct methods
.method public constructor <init>(Lcom/xingbook/xingbook/activity/XingBookMainActivity;)V
    .locals 1

    invoke-direct {p0}, Landroid/os/Handler;-><init>()V

    new-instance v0, Ljava/lang/ref/WeakReference;

    invoke-direct {v0, p1}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V

    iput-object v0, p0, Lcom/xingbook/xingbook/activity/x;->a:Ljava/lang/ref/WeakReference;

    return-void
.end method


# virtual methods
.method public handleMessage(Landroid/os/Message;)V
    .locals 8

    const/4 v6, 0x2

    const/4 v1, 0x0

    const/4 v4, 0x0

    const/4 v3, 0x1

    iget-object v0, p0, Lcom/xingbook/xingbook/activity/x;->a:Ljava/lang/ref/WeakReference;

    invoke-virtual {v0}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/xingbook/xingbook/activity/XingBookMainActivity;

    if-nez v0, :cond_0

    invoke-super {p0, p1}, Landroid/os/Handler;->handleMessage(Landroid/os/Message;)V

    :goto_0
    return-void

    :cond_0
    iget v2, p1, Landroid/os/Message;->what:I

    packed-switch v2, :pswitch_data_0

    :cond_1
    :goto_1
    invoke-super {p0, p1}, Landroid/os/Handler;->handleMessage(Landroid/os/Message;)V

    goto :goto_0

    :pswitch_0
    iget v2, p1, Landroid/os/Message;->arg1:I

    iget-object v3, v0, Lcom/xingbook/xingbook/activity/XingBookMainActivity;->a:Lcom/xingbook/park/c/a/d;

    invoke-virtual {v3}, Lcom/xingbook/park/c/a/d;->getSelectedIndex()I

    move-result v3

    if-ne v2, v3, :cond_1

    invoke-static {v0}, Lcom/xingbook/xingbook/activity/XingBookMainActivity;->h(Lcom/xingbook/xingbook/activity/XingBookMainActivity;)Landroid/widget/ListView;

    move-result-object v2

    invoke-virtual {v2, v1}, Landroid/widget/ListView;->setAdapter(Landroid/widget/ListAdapter;)V

    invoke-static {v0}, Lcom/xingbook/xingbook/activity/XingBookMainActivity;->i(Lcom/xingbook/xingbook/activity/XingBookMainActivity;)Lcom/xingbook/park/ui/p;

    move-result-object v0

    invoke-virtual {v0, v1}, Lcom/xingbook/park/ui/p;->a(Ljava/lang/String;)V

    goto :goto_1

    :pswitch_1
    iget v1, p1, Landroid/os/Message;->arg1:I

    iget-object v2, v0, Lcom/xingbook/xingbook/activity/XingBookMainActivity;->a:Lcom/xingbook/park/c/a/d;

    invoke-virtual {v2}, Lcom/xingbook/park/c/a/d;->getSelectedIndex()I

    move-result v2

    if-ne v1, v2, :cond_1

    invoke-static {v0}, Lcom/xingbook/xingbook/activity/XingBookMainActivity;->i(Lcom/xingbook/xingbook/activity/XingBookMainActivity;)Lcom/xingbook/park/ui/p;

    move-result-object v1

    iget-object v0, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast v0, Ljava/lang/String;

    invoke-virtual {v1, v0}, Lcom/xingbook/park/ui/p;->b(Ljava/lang/String;)V

    goto :goto_1

    :pswitch_2
    iget v2, p1, Landroid/os/Message;->arg1:I

    iget-object v5, v0, Lcom/xingbook/xingbook/activity/XingBookMainActivity;->a:Lcom/xingbook/park/c/a/d;

    invoke-virtual {v5}, Lcom/xingbook/park/c/a/d;->getSelectedIndex()I

    move-result v5

    if-ne v2, v5, :cond_3

    if-ne v2, v6, :cond_4

    invoke-static {v0}, Lcom/xingbook/xingbook/activity/XingBookMainActivity;->j(Lcom/xingbook/xingbook/activity/XingBookMainActivity;)Ljava/util/ArrayList;

    move-result-object v1

    invoke-virtual {v1}, Ljava/util/ArrayList;->size()I

    move-result v1

    if-lez v1, :cond_2

    invoke-static {v0}, Lcom/xingbook/xingbook/activity/XingBookMainActivity;->k(Lcom/xingbook/xingbook/activity/XingBookMainActivity;)Lcom/xingbook/park/a/a;

    move-result-object v1

    invoke-static {v0}, Lcom/xingbook/xingbook/activity/XingBookMainActivity;->j(Lcom/xingbook/xingbook/activity/XingBookMainActivity;)Ljava/util/ArrayList;

    move-result-object v2

    invoke-virtual {v1, v2}, Lcom/xingbook/park/a/a;->a(Ljava/util/ArrayList;)V

    :cond_2
    invoke-static {v0}, Lcom/xingbook/xingbook/activity/XingBookMainActivity;->h(Lcom/xingbook/xingbook/activity/XingBookMainActivity;)Landroid/widget/ListView;

    move-result-object v1

    invoke-static {v0}, Lcom/xingbook/xingbook/activity/XingBookMainActivity;->k(Lcom/xingbook/xingbook/activity/XingBookMainActivity;)Lcom/xingbook/park/a/a;

    move-result-object v2

    invoke-virtual {v1, v2}, Landroid/widget/ListView;->setAdapter(Landroid/widget/ListAdapter;)V

    :cond_3
    :goto_2
    invoke-static {v0}, Lcom/xingbook/xingbook/activity/XingBookMainActivity;->i(Lcom/xingbook/xingbook/activity/XingBookMainActivity;)Lcom/xingbook/park/ui/p;

    move-result-object v0

    invoke-virtual {v0}, Lcom/xingbook/park/ui/p;->b()V

    goto :goto_1

    :cond_4
    if-nez v2, :cond_5

    invoke-static {v0}, Lcom/xingbook/xingbook/activity/XingBookMainActivity;->l(Lcom/xingbook/xingbook/activity/XingBookMainActivity;)Lcom/xingbook/park/a/c;

    move-result-object v1

    invoke-static {v0}, Lcom/xingbook/xingbook/activity/XingBookMainActivity;->m(Lcom/xingbook/xingbook/activity/XingBookMainActivity;)Ljava/util/ArrayList;

    move-result-object v2

    invoke-virtual {v1, v2}, Lcom/xingbook/park/a/c;->a(Ljava/util/ArrayList;)V

    invoke-static {v0}, Lcom/xingbook/xingbook/activity/XingBookMainActivity;->h(Lcom/xingbook/xingbook/activity/XingBookMainActivity;)Landroid/widget/ListView;

    move-result-object v1

    invoke-static {v0}, Lcom/xingbook/xingbook/activity/XingBookMainActivity;->l(Lcom/xingbook/xingbook/activity/XingBookMainActivity;)Lcom/xingbook/park/a/c;

    move-result-object v2

    invoke-virtual {v1, v2}, Landroid/widget/ListView;->setAdapter(Landroid/widget/ListAdapter;)V

    goto :goto_2

    :cond_5
    if-ne v2, v3, :cond_3

    invoke-static {v0}, Lcom/xingbook/xingbook/activity/XingBookMainActivity;->c(Lcom/xingbook/xingbook/activity/XingBookMainActivity;)Lcom/xingbook/park/c/a/k;

    move-result-object v2

    invoke-static {v0}, Lcom/xingbook/xingbook/activity/XingBookMainActivity;->b(Lcom/xingbook/xingbook/activity/XingBookMainActivity;)Lcom/xingbook/park/b/a;

    move-result-object v3

    invoke-virtual {v2, v3}, Lcom/xingbook/park/c/a/k;->setData(Lcom/xingbook/park/b/a;)V

    invoke-static {v0}, Lcom/xingbook/xingbook/activity/XingBookMainActivity;->e(Lcom/xingbook/xingbook/activity/XingBookMainActivity;)Lcom/xingbook/park/a/a;

    move-result-object v2

    invoke-static {v0}, Lcom/xingbook/xingbook/activity/XingBookMainActivity;->d(Lcom/xingbook/xingbook/activity/XingBookMainActivity;)Ljava/util/ArrayList;

    move-result-object v3

    invoke-virtual {v2, v3}, Lcom/xingbook/park/a/a;->a(Ljava/util/ArrayList;)V

    invoke-static {v0}, Lcom/xingbook/xingbook/activity/XingBookMainActivity;->h(Lcom/xingbook/xingbook/activity/XingBookMainActivity;)Landroid/widget/ListView;

    move-result-object v2

    invoke-static {v0}, Lcom/xingbook/xingbook/activity/XingBookMainActivity;->e(Lcom/xingbook/xingbook/activity/XingBookMainActivity;)Lcom/xingbook/park/a/a;

    move-result-object v3

    invoke-virtual {v2, v3}, Landroid/widget/ListView;->setAdapter(Landroid/widget/ListAdapter;)V

    invoke-static {v0}, Lcom/xingbook/xingbook/activity/XingBookMainActivity;->d(Lcom/xingbook/xingbook/activity/XingBookMainActivity;)Ljava/util/ArrayList;

    move-result-object v2

    if-eqz v2, :cond_6

    invoke-static {v0}, Lcom/xingbook/xingbook/activity/XingBookMainActivity;->d(Lcom/xingbook/xingbook/activity/XingBookMainActivity;)Ljava/util/ArrayList;

    move-result-object v2

    invoke-virtual {v2}, Ljava/util/ArrayList;->size()I

    move-result v2

    invoke-static {v0}, Lcom/xingbook/xingbook/activity/XingBookMainActivity;->n(Lcom/xingbook/xingbook/activity/XingBookMainActivity;)Lcom/xingbook/park/b/d;

    move-result-object v3

    invoke-virtual {v3}, Lcom/xingbook/park/b/d;->d()I

    move-result v3

    if-ge v2, v3, :cond_3

    :cond_6
    invoke-static {v0}, Lcom/xingbook/xingbook/activity/XingBookMainActivity;->e(Lcom/xingbook/xingbook/activity/XingBookMainActivity;)Lcom/xingbook/park/a/a;

    move-result-object v2

    invoke-virtual {v2}, Lcom/xingbook/park/a/a;->j()Lcom/xingbook/park/c/a/o;

    move-result-object v2

    invoke-static {v0}, Lcom/xingbook/xingbook/activity/XingBookMainActivity;->d(Lcom/xingbook/xingbook/activity/XingBookMainActivity;)Ljava/util/ArrayList;

    move-result-object v3

    invoke-virtual {v3}, Ljava/util/ArrayList;->size()I

    move-result v3

    if-nez v3, :cond_7

    const-string v1, "\u6ca1\u6709\u5185\u5bb9\u54e6\uff0c\u8bd5\u8bd5\u5176\u4ed6\u7b5b\u9009\u6761\u4ef6\u5427~"

    :cond_7
    invoke-virtual {v2, v4, v1}, Lcom/xingbook/park/c/a/o;->a(ZLjava/lang/String;)V

    goto :goto_2

    :pswitch_3
    iget v1, p1, Landroid/os/Message;->arg1:I

    iget-object v2, v0, Lcom/xingbook/xingbook/activity/XingBookMainActivity;->a:Lcom/xingbook/park/c/a/d;

    invoke-virtual {v2}, Lcom/xingbook/park/c/a/d;->getSelectedIndex()I

    move-result v2

    if-ne v1, v2, :cond_1

    if-ne v1, v6, :cond_8

    invoke-static {v0}, Lcom/xingbook/xingbook/activity/XingBookMainActivity;->k(Lcom/xingbook/xingbook/activity/XingBookMainActivity;)Lcom/xingbook/park/a/a;

    move-result-object v0

    invoke-virtual {v0}, Lcom/xingbook/park/a/a;->j()Lcom/xingbook/park/c/a/o;

    move-result-object v0

    invoke-virtual {v0}, Lcom/xingbook/park/c/a/o;->a()V

    goto/16 :goto_1

    :cond_8
    if-ne v1, v3, :cond_1

    invoke-static {v0}, Lcom/xingbook/xingbook/activity/XingBookMainActivity;->e(Lcom/xingbook/xingbook/activity/XingBookMainActivity;)Lcom/xingbook/park/a/a;

    move-result-object v0

    invoke-virtual {v0}, Lcom/xingbook/park/a/a;->j()Lcom/xingbook/park/c/a/o;

    move-result-object v0

    invoke-virtual {v0}, Lcom/xingbook/park/c/a/o;->a()V

    goto/16 :goto_1

    :pswitch_4
    iget v1, p1, Landroid/os/Message;->arg1:I

    iget-object v2, v0, Lcom/xingbook/xingbook/activity/XingBookMainActivity;->a:Lcom/xingbook/park/c/a/d;

    invoke-virtual {v2}, Lcom/xingbook/park/c/a/d;->getSelectedIndex()I

    move-result v2

    if-ne v1, v2, :cond_1

    if-ne v1, v6, :cond_9

    invoke-static {v0}, Lcom/xingbook/xingbook/activity/XingBookMainActivity;->k(Lcom/xingbook/xingbook/activity/XingBookMainActivity;)Lcom/xingbook/park/a/a;

    move-result-object v0

    invoke-virtual {v0}, Lcom/xingbook/park/a/a;->j()Lcom/xingbook/park/c/a/o;

    move-result-object v1

    iget-object v0, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast v0, Ljava/lang/String;

    invoke-virtual {v1, v3, v0}, Lcom/xingbook/park/c/a/o;->a(ZLjava/lang/String;)V

    goto/16 :goto_1

    :cond_9
    if-ne v1, v3, :cond_1

    invoke-static {v0}, Lcom/xingbook/xingbook/activity/XingBookMainActivity;->e(Lcom/xingbook/xingbook/activity/XingBookMainActivity;)Lcom/xingbook/park/a/a;

    move-result-object v0

    invoke-virtual {v0}, Lcom/xingbook/park/a/a;->j()Lcom/xingbook/park/c/a/o;

    move-result-object v1

    iget-object v0, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast v0, Ljava/lang/String;

    invoke-virtual {v1, v3, v0}, Lcom/xingbook/park/c/a/o;->a(ZLjava/lang/String;)V

    goto/16 :goto_1

    :pswitch_5
    iget v2, p1, Landroid/os/Message;->arg1:I

    iget-object v5, v0, Lcom/xingbook/xingbook/activity/XingBookMainActivity;->a:Lcom/xingbook/park/c/a/d;

    invoke-virtual {v5}, Lcom/xingbook/park/c/a/d;->getSelectedIndex()I

    move-result v5

    if-ne v2, v5, :cond_1

    if-ne v2, v6, :cond_d

    invoke-static {v0}, Lcom/xingbook/xingbook/activity/XingBookMainActivity;->j(Lcom/xingbook/xingbook/activity/XingBookMainActivity;)Ljava/util/ArrayList;

    move-result-object v2

    invoke-virtual {v2}, Ljava/util/ArrayList;->size()I

    move-result v2

    if-lez v2, :cond_a

    move v2, v3

    :goto_3
    invoke-static {v0}, Lcom/xingbook/xingbook/activity/XingBookMainActivity;->k(Lcom/xingbook/xingbook/activity/XingBookMainActivity;)Lcom/xingbook/park/a/a;

    move-result-object v5

    invoke-virtual {v5}, Lcom/xingbook/park/a/a;->j()Lcom/xingbook/park/c/a/o;

    move-result-object v5

    invoke-static {v0}, Lcom/xingbook/xingbook/activity/XingBookMainActivity;->j(Lcom/xingbook/xingbook/activity/XingBookMainActivity;)Ljava/util/ArrayList;

    move-result-object v6

    invoke-virtual {v6}, Ljava/util/ArrayList;->size()I

    move-result v6

    invoke-static {v0}, Lcom/xingbook/xingbook/activity/XingBookMainActivity;->o(Lcom/xingbook/xingbook/activity/XingBookMainActivity;)Lcom/xingbook/park/b/d;

    move-result-object v7

    invoke-virtual {v7}, Lcom/xingbook/park/b/d;->d()I

    move-result v7

    if-lt v6, v7, :cond_b

    :goto_4
    invoke-virtual {v5, v3, v1}, Lcom/xingbook/park/c/a/o;->a(ZLjava/lang/String;)V

    if-eqz v2, :cond_c

    invoke-static {v0}, Lcom/xingbook/xingbook/activity/XingBookMainActivity;->k(Lcom/xingbook/xingbook/activity/XingBookMainActivity;)Lcom/xingbook/park/a/a;

    move-result-object v1

    invoke-static {v0}, Lcom/xingbook/xingbook/activity/XingBookMainActivity;->j(Lcom/xingbook/xingbook/activity/XingBookMainActivity;)Ljava/util/ArrayList;

    move-result-object v0

    invoke-virtual {v1, v0}, Lcom/xingbook/park/a/a;->b(Ljava/util/ArrayList;)V

    goto/16 :goto_1

    :cond_a
    move v2, v4

    goto :goto_3

    :cond_b
    move v3, v4

    goto :goto_4

    :cond_c
    invoke-static {v0}, Lcom/xingbook/xingbook/activity/XingBookMainActivity;->k(Lcom/xingbook/xingbook/activity/XingBookMainActivity;)Lcom/xingbook/park/a/a;

    move-result-object v1

    invoke-virtual {v1}, Lcom/xingbook/park/a/a;->g()Z

    move-result v1

    if-nez v1, :cond_1

    invoke-static {v0}, Lcom/xingbook/xingbook/activity/XingBookMainActivity;->k(Lcom/xingbook/xingbook/activity/XingBookMainActivity;)Lcom/xingbook/park/a/a;

    move-result-object v0

    invoke-virtual {v0}, Lcom/xingbook/park/a/a;->j()Lcom/xingbook/park/c/a/o;

    move-result-object v0

    const-string v1, "\u6ca1\u6709\u5185\u5bb9\u54e6\uff0c\u8bd5\u8bd5\u5176\u4ed6\u7b5b\u9009\u6761\u4ef6\u5427~"

    invoke-virtual {v0, v4, v1}, Lcom/xingbook/park/c/a/o;->a(ZLjava/lang/String;)V

    goto/16 :goto_1

    :cond_d
    if-ne v2, v3, :cond_1

    invoke-static {v0}, Lcom/xingbook/xingbook/activity/XingBookMainActivity;->d(Lcom/xingbook/xingbook/activity/XingBookMainActivity;)Ljava/util/ArrayList;

    move-result-object v2

    invoke-virtual {v2}, Ljava/util/ArrayList;->size()I

    move-result v2

    if-lez v2, :cond_e

    move v2, v3

    :goto_5
    invoke-static {v0}, Lcom/xingbook/xingbook/activity/XingBookMainActivity;->e(Lcom/xingbook/xingbook/activity/XingBookMainActivity;)Lcom/xingbook/park/a/a;

    move-result-object v5

    invoke-virtual {v5}, Lcom/xingbook/park/a/a;->j()Lcom/xingbook/park/c/a/o;

    move-result-object v5

    invoke-static {v0}, Lcom/xingbook/xingbook/activity/XingBookMainActivity;->d(Lcom/xingbook/xingbook/activity/XingBookMainActivity;)Ljava/util/ArrayList;

    move-result-object v6

    invoke-virtual {v6}, Ljava/util/ArrayList;->size()I

    move-result v6

    invoke-static {v0}, Lcom/xingbook/xingbook/activity/XingBookMainActivity;->n(Lcom/xingbook/xingbook/activity/XingBookMainActivity;)Lcom/xingbook/park/b/d;

    move-result-object v7

    invoke-virtual {v7}, Lcom/xingbook/park/b/d;->d()I

    move-result v7

    if-lt v6, v7, :cond_f

    :goto_6
    invoke-virtual {v5, v3, v1}, Lcom/xingbook/park/c/a/o;->a(ZLjava/lang/String;)V

    if-eqz v2, :cond_10

    invoke-static {v0}, Lcom/xingbook/xingbook/activity/XingBookMainActivity;->e(Lcom/xingbook/xingbook/activity/XingBookMainActivity;)Lcom/xingbook/park/a/a;

    move-result-object v1

    invoke-static {v0}, Lcom/xingbook/xingbook/activity/XingBookMainActivity;->d(Lcom/xingbook/xingbook/activity/XingBookMainActivity;)Ljava/util/ArrayList;

    move-result-object v0

    invoke-virtual {v1, v0}, Lcom/xingbook/park/a/a;->b(Ljava/util/ArrayList;)V

    goto/16 :goto_1

    :cond_e
    move v2, v4

    goto :goto_5

    :cond_f
    move v3, v4

    goto :goto_6

    :cond_10
    invoke-static {v0}, Lcom/xingbook/xingbook/activity/XingBookMainActivity;->e(Lcom/xingbook/xingbook/activity/XingBookMainActivity;)Lcom/xingbook/park/a/a;

    move-result-object v1

    invoke-virtual {v1}, Lcom/xingbook/park/a/a;->g()Z

    move-result v1

    if-nez v1, :cond_1

    invoke-static {v0}, Lcom/xingbook/xingbook/activity/XingBookMainActivity;->e(Lcom/xingbook/xingbook/activity/XingBookMainActivity;)Lcom/xingbook/park/a/a;

    move-result-object v0

    invoke-virtual {v0}, Lcom/xingbook/park/a/a;->j()Lcom/xingbook/park/c/a/o;

    move-result-object v0

    const-string v1, "\u6ca1\u6709\u5185\u5bb9\u54e6\uff0c\u8bd5\u8bd5\u5176\u4ed6\u7b5b\u9009\u6761\u4ef6\u5427~"

    invoke-virtual {v0, v4, v1}, Lcom/xingbook/park/c/a/o;->a(ZLjava/lang/String;)V

    goto/16 :goto_1

    :pswitch_data_0
    .packed-switch 0x1
        :pswitch_0
        :pswitch_1
        :pswitch_2
        :pswitch_3
        :pswitch_4
        :pswitch_5
    .end packed-switch
.end method
